package com.jrzh.mvc.constants;

import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

public interface SysConstant {
	public static List<String> MODULE_LIST = new ArrayList<String>();
	
	public static final String MODULE_NAME = "sys";
	public static final String SYSTEM_MANAGER = "http://159.138.4.36:9014/jrzh/services/";
	//public static final String SYSTEM_MANAGER = "http://139.159.250.39:9014/jrzh/services/";
	public static final String MIYAO = "708112-jingruiit";
	
	/**
	 * 登陆类型
	 * @author lee
	 */
	public abstract class USER_STATUS{
		//正常
		public static final Integer NORMAL= 0;
		//不正常
		public static final Integer NOT_NORMAL =-1;
		
		public static Map<Integer, String> valueMap = new LinkedHashMap<Integer, String>();
		
		static{
			valueMap.put(NORMAL, "正常");
			valueMap.put(NOT_NORMAL, "不正常");
		}
	}
	
	/**
	 * 登陆类型
	 * @author lee
	 */
	public abstract class LOGIN_TYPE{
		//登陆
		public static final Integer LOGIN = 1;
		//登出
		public static final Integer LOGIN_OUT = 2;
		
		public static Map<Integer, String> valueMap = new LinkedHashMap<Integer, String>();
		
		static{
			valueMap.put(LOGIN, "登陆");
			valueMap.put(LOGIN_OUT, "登出");
		}
	}
	
	
	/**
	 * 菜单类型
	 * @author Mr.Shower
	 *
	 */
	public abstract class RESOURCE_TYPE{
		//菜单
		public static final Integer MENU = 1;
		//功能
		public static final Integer FUNC = 2;
		//动作
		public static final Integer ACTION = 3;
		
		public static Map<Integer, String> valueMap = new LinkedHashMap<Integer, String>();
		
		static{
			valueMap.put(MENU, "菜单");
			valueMap.put(FUNC, "功能");
			valueMap.put(ACTION, "动作");
		}
	}
	
	public abstract class LOGIN_STATUS {
		public static final String ERROR = "error";
		public static final String USER_NAME_OR_PASSORD_ERROR = "unope";
		public static final String VERIFICATION_CODE_ERROR = "vce";
		public static final String DISABLE = "disable";
		public static final String NOT_FOUND = "nf";
	}
}
